package io.zhaocy.acmspringboot.mvc.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author GeneZhao123
 * @since 2018-07-12
 */
@RestController
@RefreshScope
public class UserController {

    @Value("${user.name}")
    private String userName;

    @RequestMapping("/get")
    public String simple() {
        return "Hello Spring Cloud ACM!" + " Hello " + userName + "!";
    }
}

